package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Shraddha
 * Date: 15/8/13
 * Time: 7:16 PM
 * To change this template use File | Settings | File Templates.
 */
public class Movie {
    String name = "";
    int year = 0;
    String director ="";
    String rating = "";

    Movie(String movieName, int yr, String movieDirector, String movieRating) {
        name = movieName;
        year = yr;
        director = movieDirector;
        rating = movieRating;
    }

    public static void displayMovieInformation(Movie movie){

        System.out.printf("%-20s%-6s%-20s%-3s\n", movie.name, movie.year, movie.director, movie.rating);
    }

    static String displayHeading(){

        return ("Movie               Year  Director            Rating\n");
    }

}
